package com.jsu.springboot_medicine.service;

import com.jsu.springboot_medicine.entity.Hospital;
import com.jsu.springboot_medicine.entity.User;

import java.util.List;

/**
 * @author js
 * @name HospitalService
 * @Date 2023/10/1 12:55
 */
public interface HospitalService {
    //    查询所有医院信息
    List<Hospital> selectAll();
    // 根据id查询
    Hospital selectById(int id);
    //    修改医院信息
    int update(Hospital hospital);
    // 根据名查询
    List<Hospital> selectByName(String name);
    //    删除用户信息
    int delete(int id);

    //插入数据
    int insert(Hospital hospital);

    int countByNameLike(String name);
}
